package se.webbzon.boltzmann.game.object.dialogue.factory;

import se.webbzon.boltzmann.game.object.dialogue.layout.DialogueLayout;
import se.webbzon.boltzmann.game.object.dialogue.word.AbstractDialogueWord;
import se.webbzon.boltzmann.game.object.dialogue.word.ImageDialogueWord;

public class ImageDialogueWordFactory extends AbstractDialogueWordFactory {
	
	// The name of the texture set
	private final String textureSetName;
	
	/*============================================================
	Constructors
	============================================================*/
	
	/** Creates a new image dialogue word factory with a given texture
	 * set name. **/
	public ImageDialogueWordFactory(String textureSetName) {
		this.textureSetName = textureSetName;
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public AbstractDialogueWord createWord(DialogueLayout layout) {
		return new ImageDialogueWord(layout,textureSetName);
	}

}
